package core
{
	import flash.display.DisplayObject;
	import flash.geom.Point;

	public class Util
	{
		public function Util()
		{
		}
		
		public static function getDist(a:DisplayObject,b:DisplayObject):Number {
			var result:Number = (a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y);
			return result;
		}
		
		public static function distance(a:Point, b:Point):Number{
			return Math.sqrt((((a.x - b.x) * (a.x - b.x)) + ((a.y - b.y) * (a.y - b.y))));
		}
	}
}